<?php
namespace app\common\validate\Post;

use think\Validate;

// 帖子的验证器
class Post extends Validate
{
    protected $rule =   [
        'title'  => ['require'],
        'content'  => ['require'],
        'point'  => ['require'],
        'busid'  => ['require'],
        'status'  => ['require'],
        'cateid'  => ['require'],
    ];

    protected $message  =   [
        'title.require' => '帖子标题必须填写',
        'content.require' => '帖子内容必须填写',
        'point.require' => '悬赏积分必须填写',
        'busid.require' => '用户未知',
        'status.require' => '帖子状态必须填写',
        'cateid.require' => '帖子分类必须填写',
    ];
}
